class student(object):
    def __init__(self,stu_name,stu_age,stu_gender,stu_score):
        self.stu_name=stu_name
        self.stu_age=stu_age
        self.stu_gender=stu_gender
        self.stu_score=stu_score
    def show(self):
        print(self.stu_name,self.stu_age,self.stu_gender,self.stu_score)
lst=[]
for item in range(0,5):
    stu=input('请输入学生信息 姓名#年龄#性别#分数')
    lst_stu=stu.split('#') #以#为分隔符分割字符串返回一个列表
    s=student(lst_stu[0],lst_stu[1],lst_stu[2],lst_stu[3])
    lst.append(s)
for item in lst:
    item.show()

